package service.impl;

import mapper.MovieMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Movie;
import service.MovieService;

import java.util.List;
@Service
public class MovieServiceImpl implements MovieService {

    @Autowired
    private MovieMapper  movieMapper;

    @Override
    public List<Movie> limit(Integer pageNo, Integer pageSize) {
        return movieMapper.limit(pageNo,pageSize);
    }

    @Override
    public Integer selectMovieName(String movieName) {
        return movieMapper.selectMovieName(movieName);
    }

    @Override
    public int add(Movie movie) {
        return movieMapper.add(movie);
    }

    @Override
    public int Count() {
        return movieMapper.Count();
    }
}
